Create incident via webhook and resolve that via email

Hello,

I’m trying to create a pageduty service what is triggering an alert via webhook and resolving that via email, but that is not working for me.
Can you help me?

Here is my example try:
1.) Triggered an alert via webhook:
{
“payload”: {
“summary”: “This-is-the-summary”,
“timestamp”: “2016-08-22T10:30:56.455+0000”,
“source”: “monitoringtool:cloudvendor:central-region-dc-01:852559987:cluster/api-stats-prod-003”,
“severity”: “info”,
“component”: “This-is-the-component”,
“group”: “thisgroup”,
“class”: “classname”,
“custom_details”: {
“ping time”: “1500ms”,
“load avg”: 0.75
}
},
“routing_key”: “<my_rooting_key>”,
“dedup_key”: “dedup_key_2”,
“links”: [
{
“href”: “https://google.com”,
“text”: “Click here to check the incident.”
}
],
“event_action”: “trigger”,
“client”: “Sample Monitoring Service”,
“client_url”: “https://monitoring.example.com”
}

2.) I’m checking, the alert was created:

3.) I’m checking the alert key:
Pg_1_triggered_alert_key

4.) I’m setting the email integration:

5.) I’m sending an email to the “intergation email” with the alert key.

6.) The triggered alert is not resolved this way.

The “intergation email” address is working, I checked.

Hello,

Thanks for reaching out. Right off the bad I am not sure if this is something we support, but just to clarify some details, is there a reason for the different triggering method on the events as in why one is webhook and the other email?

John

John O’Donnell
Team Lead, EMEA Support@pagerduty.com

Hello John,

We have two kind of systems:
1.) First system is detecting the problems. There is no email sending function on this system. (And my opinion the webhook is safer way to create alerts because the webhook has respons and we can process this response).
2.) Second system is trying to resolve the problem. There is no internet connection on this system. This system has only email sending function to communicate.

Our plan: the second system is sending an email to the pagerduty if the problem is resolving. If the problem is not resolving the pagerduty will alert the oncall person.

Regards,

Thank you for the explanation.

We aren’t able to support this an incident would need to be triggered and resolved in the same manner, e.g. trigger email and resolve email. However I have shared this use case internally within the team and let them know what you are looking for.

Let us know if you have any questions,
John

John O’Donnell
Team Lead, EMEA Support@pagerduty.com

Hi Zsolt,

Sorry if I miss to understand your context and hope my contribution can be helpful.
Your system which triggered the alert may be able to send a Resolve event when the metric goes back to a normal state:
https://developer.pagerduty.com/docs/ZG9jOjExMDI5NTgx-sending-an-alert-event#event-action-behavior

Regards,
Sébastien